Printer

Superclass:
NSObject
Declared In:

Introduction

Printer base class



Methods

-Close
-Open
-Read
-Write:
-WriteAsync:

Close


-(void) Close; 
Discussion

Close connection


Open


-(void) Open; 
Discussion

Open connection printer


Read


-(void) Read; 
Discussion

Read data (temporarily useless)


Write:


-(BOOL)Write:(NSData *) data; 
Discussion

Sending data to the printer


WriteAsync:


-(void) WriteAsync:(NSData *)data; 
Discussion

Sending data to the printer(Asynchronous execution)


Properties

BitmapSetts
blewritetype
CommonSetts
IsNeedCallBack
IsOpen
PrinterPi
TextSets

BitmapSetts


@property(nonatomic,
    strong,
    readonly) BitmapSetting * BitmapSetts; 
Discussion

Image settings


blewritetype


@property (nonatomic) BleWriteType blewritetype; 
Discussion

Bluetooth write mode


CommonSetts


@property(nonatomic,
    strong) CommonSetting * CommonSetts; 
Discussion

Universal settings


IsNeedCallBack


@property (nonatomic) BOOL IsNeedCallBack; 
Discussion

After writing, do you need a callback!


IsOpen


@property(nonatomic,
    readonly) BOOL IsOpen; 
Discussion

Whether it has been connected to the printer


PrinterPi


@property(nonatomic,
    retain) PrinterInterface * PrinterPi; 
Discussion

Printer connection interface (such as Bluetooth, wifi)


TextSets


@property(nonatomic,
    strong,
    readonly) TextSetting * TextSets; 
Discussion

Print text settings